﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Automobile.service.BLL;
using Automobile.service.Model;

namespace Automobile.service.UI
{
    public partial class PurchaseStatistics : System.Web.UI.Page
    {
        StatisticeBLL bll = new StatisticeBLL();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Unnamed_ServerClick(object sender, EventArgs e)
        {

            string DateStart = this.logmin.Value;
            string DateEnd = this.logmax.Value;
            string PurChase_InOut = this.PurChase_InOut.Value;
            this.q.InnerText = bll.SumMoney(DateStart, DateEnd, PurChase_InOut).ToString();
            this.Repeater1.DataSource = bll.SearchPurchaseBydate(DateStart,  DateEnd, PurChase_InOut);//获取数据源
            this.Repeater1.DataBind();//绑定数据源
        }
        
    }
}